package com.tyx.chargingpile.controller;

import com.tyx.chargingpile.cache.SocketChannelMap;
import com.tyx.chargingpile.vo.PileInfo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/cache")
public class MapController {

    @RequestMapping("allPileInfo")
    public Map<String, PileInfo> getAll(){
        return SocketChannelMap.allPileInfo();
    }
}
